package com.laamella.syntherface.synths.alesis.micron.model;

import com.laamella.syntherface.synths.midi.MidiInterface;
import com.laamella.syntherface.synths.models.NrpnParameterModel;
import com.laamella.syntherface.synths.models.ParameterModel;
import com.laamella.syntherface.synths.models.ParameterType;

@SuppressWarnings("serial") public final class PreFilterMix {
	public enum MixerFor {
		Oscillator1, Oscillator2, Oscillator3, RingModulation, Noise, ExtIn
	}

	public final ParameterModel level;
	public final ParameterModel balance;

	public PreFilterMix(MidiInterface midiInterface, MixerFor what) {
		int offset = what.ordinal();
		String mixerName = what.toString() + " ";
		level = new NrpnParameterModel(mixerName + "level", midiInterface, 29 + offset, ParameterType.Percentage, ParameterType.Percentage.maximum);
		balance = new NrpnParameterModel(mixerName + "balance", midiInterface, 35 + offset, new ParameterType.IntegerRange(-50, 50));
	}

}
